﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="AgentQltyVisitList.aspx.cs" Inherits="IHISCETeim.Web.AgentSys.SvrMgr.AgentQltyVisitList" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title>故障一周回访汇总</title>
</head>
<body>
    <form id="form1" runat="server">
        <f:PageManager ID="PageManager1" AutoSizePanelID="Panel1" runat="server" />
        <f:Panel ID="Panel1" runat="server" BodyPadding="2px"  
            ShowBorder="false" Layout="VBox" BoxConfigAlign="Stretch" BoxConfigPosition="Start"
            ShowHeader="false">
            <Items>
                <f:Form ID="Form2" runat="server"  BodyPadding="2px 1px" ShowHeader="false"
                    ShowBorder="false" LabelAlign="Right" >
                    <Rows>
                        <f:FormRow ID="FormRow1" runat="server">
                            <Items>
                                <f:TwinTriggerBox ID="ttbSearchMessage" runat="server" ShowLabel="true" Label="查找条件" EmptyText="输入品情号/机号/用户 进行搜索"
                                    Trigger1Icon="Clear" Trigger2Icon="Search" ShowTrigger1="false" OnTrigger2Click="ttbSearchMessage_Trigger2Click"
                                    OnTrigger1Click="ttbSearchMessage_Trigger1Click">
                                </f:TwinTriggerBox>
                                <f:RadioButtonList ID="rblIsVisit" AutoPostBack="true" OnSelectedIndexChanged="rblSearchSvrAct_SelectedIndexChanged"
                                    Label="是否已回访" ColumnNumber="3" runat="server">
                                    <f:RadioItem Text="全部"  Value="" Selected="true"/>
                                    <f:RadioItem Text="未回访" Value="0" />
                                    <f:RadioItem Text="已回访" Value="1" />
                                </f:RadioButtonList>                            
                            </Items>
                        </f:FormRow>
                        <f:FormRow>
                            <Items>
                                <f:Panel runat="server"  ShowHeader="false" ShowBorder="false" Layout="HBox" >
                                    <Items>
                                        <f:DatePicker runat="server" ID="FromRealDate" Label="回访时间从"></f:DatePicker>
                                        <f:DatePicker runat="server" ID="ToRealDate" Label="到"></f:DatePicker>                                        
                                    </Items>
                                </f:Panel>
                                <f:Button ID="btnSearch" Icon="SystemSearch" runat="server" Text="确定" OnClick="btnSearch_Click"></f:Button>
                            </Items>
                        </f:FormRow>
                    </Rows>
                </f:Form>
                <f:Grid ID="Grid1" runat="server" BoxFlex="1" ShowBorder="true" ShowHeader="false"
                    EnableCheckBoxSelect="false"  EnableColumnLines="true" 
                    DataKeyNames="ID" AllowSorting="true" OnSort="Grid1_Sort"  SortField="VisitDate"
                    SortDirection="DESC" AllowPaging="true" IsDatabasePaging="true" OnPageIndexChange="Grid1_PageIndexChange" OnPreDataBound="Grid1_PreDataBound" OnPreRowDataBound="Grid1_PreRowDataBound" OnRowDataBound="Grid1_RowDataBound" OnRowCommand="Grid1_RowCommand" >
                    <Toolbars>
                        <f:Toolbar ID="Toolbar1" runat="server">
                            <Items>                                
                            </Items>
                        </f:Toolbar>
                    </Toolbars>
                    <PageItems>
                        <f:ToolbarSeparator ID="ToolbarSeparator1" runat="server">
                        </f:ToolbarSeparator>
                        <f:ToolbarText ID="ToolbarText1" runat="server" Text="每页记录数：">
                        </f:ToolbarText>
                        <f:DropDownList ID="ddlGridPageSize" Width="80px" AutoPostBack="true" OnSelectedIndexChanged="ddlGridPageSize_SelectedIndexChanged"
                            runat="server">
                            <f:ListItem Text="10" Value="10" />
                            <f:ListItem Text="20" Value="20" />
                            <f:ListItem Text="50" Value="50" />
                            <f:ListItem Text="100" Value="100" />   
                        </f:DropDownList>
                    </PageItems>
                    <Columns>
                        <f:RowNumberField Width="30px" EnablePagingNumber="true" TextAlign="Center" /> 
                        <f:CheckBoxField DataField="IsVisit" SortField="IsVisit" HeaderText="已回访" TextAlign="Center" RenderAsStaticField="true" Width="60px" />
                        <f:BoundField DataField="AgentName" SortField="AgentName" Width="100px" HeaderText="经销商" />
                        <f:BoundField DataField="ClaimsNumber" SortField="ClaimsNumber" Width="100px" HeaderText="品情号" /> 
                        <f:BoundField DataField="SerialNumber" SortField="SerialNumber" Width="100px" HeaderText="机号" />
                        <f:BoundField DataField="MachineType" SortField="MachineType" Width="80px" HeaderText="机型" /> 
                        <f:BoundField DataField="CustomerName" SortField="CustomerName" HeaderText="用户" Width="80px" /> 
                        <f:BoundField DataField="CustomerMobile" SortField="CustomerMobile" HeaderText="用户手机" Width="120px" /> 
                        <f:BoundField DataField="FaultDate" SortField="FaultDate" DataFormatString="{0:yyyy-MM-dd}" HeaderText="故障日" NullDisplayText="" Width="100px" />  
                        <f:BoundField DataField="WorkHour"  SortField="WorkHour" HeaderText="工作小时" NullDisplayText="0" Width="80px" />
                        <f:BoundField  HeaderText="服务担当"  DataField="SrvActRealName"  Width="100px" />
                        <f:BoundField DataField="VisitDate" SortField="VisitDate" DataFormatString="{0:yyyy-MM-dd}" HeaderText="需回访时间" NullDisplayText="" Width="100px" /> 
                        <f:BoundField DataField="RealDate" SortField="RealDate" DataFormatString="{0:yyyy-MM-dd}" HeaderText="实际回访时间" NullDisplayText="" Width="100px" />  
                                         
                         <f:WindowField  ColumnID="visitField" TextAlign="Center" Icon="Pencil" HeaderText="查看/回访" ToolTip="查看/回访"
                            WindowID="Window1" Title="一周故障回访" DataIFrameUrlFields="ID" DataIFrameUrlFormatString="~/AgentSys/SvrMgr/AgentQltyVisitVisit.aspx?id={0}"
                            Width="90px" />
                          <f:LinkButtonField ColumnID="deleteField" TextAlign="Center" Icon="Delete" HeaderText="删除" ToolTip="删除"
                            ConfirmText="确定删除此记录？" ConfirmTarget="Self" CommandName="Delete" Width="50px" />
                    </Columns>
                </f:Grid>
            </Items>
        </f:Panel>
        <f:Window ID="Window1" runat="server" IsModal="false" Hidden="true" Target="Self" EnableConfirmOnClose="true" EnableResize="true"
            EnableMaximize="true" EnableMinimize="true" EnableIFrame="true" IFrameUrl="about:blank"  Width="650px"
            Height="600px">
        </f:Window>
    </form>    
</body>
</html>
